package com.his.his_system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.his.his_system.domain.DzmHisCarePkg;
import com.his.his_system.domain.MonthlyStatistics;
import com.his.his_system.service.DzmHisCarePkgService;
import com.his.his_system.mapper.DzmHisCarePkgMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 覃圣礼
* @description 针对表【dzm_his_care_pkg(收费总表)】的数据库操作Service实现
* @createDate 2023-07-06 08:47:53
*/
@Service
public class DzmHisCarePkgServiceImpl extends ServiceImpl<DzmHisCarePkgMapper, DzmHisCarePkg>
    implements DzmHisCarePkgService{

      @Resource
      private DzmHisCarePkgMapper dzmHisCarePkgMapper;

      /**
       * 查询全部
       * @return
       */
      @Override
      public List<DzmHisCarePkg> getInfo() {

	  return dzmHisCarePkgMapper.getInfo();
      }

      /**
       * 条件查询
       */
      @Override
      public List<DzmHisCarePkg> queryInfo(String chargetype,String chargestatus,String startDate,String endDate) {

            return dzmHisCarePkgMapper.queryInfo( chargetype, chargestatus, startDate, endDate);
      }


      /**
       * 年月报表统计
       * @return
       */

      public List<DzmHisCarePkg> getMonthlyReport() {
            return dzmHisCarePkgMapper.getMonthlyReport();
      }

      /**
        * 获取某年每个月的支付信息
        */
      @Override
      public List<MonthlyStatistics> annualStatistics(String year) {

     return dzmHisCarePkgMapper.annualStatistics(year);

      }


}




